package com.vchello.dao.user;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.alibaba.dubbo.config.support.Parameter;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.vchello.bean.user.User;

/**
 * @author power
 *
 */
public interface UserDao extends BaseMapper<User>{
	
	User findUserById(@Param("id")int id);
	
	User login(@Param("userName")String userName, @Param("password")String password);
	
	User adminLogin(String name, String password);
	
	User findUserByUserName(String userName);
	
	User findUserByPhone(@Param("phone")String phone);
	
	User findUserByEmail(String email);

	Page<User> queryPage(Page<User> page, User user);
	
	List<User> queryList(User user);
	
}
